Data Types as Objects

نویسندگان

  • Adi Shamir
  • William W. Wadge
چکیده

In this paper we present a new approach to the semantics of data types, in which the types themselves are incorporated as elements of the domain of data objects. The approach allows types to have subtypes, allows genuinely polymorphic functions, and gives a precise semantics for recursive type definitions (including definitions with parameters). In addition, the approach yields simple and straightforward methods for proving type properties of recursive definitions. These methods include a new fixedpoint rule which permits case analysis. 1 Informal Introduction Most current type systems (e.g., that of LCF, as in [2]) are based on [1], Church’s 1940 paper on a simple theory of types. In these systems there are a number of unrelated ground data types and an arrow operation for forming function types of finite level. A serious drawback of such systems is the requirement that each data object must have a unique type. Thus integers, for example, cannot be considered as a special case of real numbers, and in general one type cannot be a subtype of another. A second problem, related to the first, is that polymorphism is not possible; each argument of a function must be of some specified single type. For example, we cannot have a single addition operation capable of adding both reals and integers; instead, we need four functions of various types for the various possible combinations. Especially serious is the lack of a general if–then–else conditional whose domains are left unspecified. The third problem is that in a Church system there are in fact two ‘meta’-types, namely types and data objects, which cannot be mixed (LCF has variables of both metatypes). For example, the natural identity evenInteger + 1 = oddInteger relating the types evenInteger and oddInteger and the data object 1 makes no sense in a Church system (except, perhaps, informally). Even unmixed recursive type equations are problematic because the types do not constitute a domain. Our approach is to incorporate all the objects and data types together in a single unified domain. Any element of the resulting domain then has two rôles: 1. it is a data object, at which functions can be defined, including of course functions which are least fixedpoints of recursive definitions; 2. it is the type of all objects which approximate it; the assertions “x v y”, “x is of type y” and “any object of type x is of type y” are therefore all equivalent. Given an initial domain D of data objects, and a collection of intuitive data types, we form a new domain D̂ (which we will call a type extension of D) by adding the types as new data objects in the sense of (1). The extended v relation on D̂ is determined by the equivalence in part (2): ∗Published in Fourth Colloquium on Automata, Languages and Programming, LNCS 52:465–479, held in Turku, Finland on 18–22 July 1977. Preliminary version published as University of Warwick Computer Science Research Report CS–RR–020, June 1977.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

3D Modelling of Under Ground Burried Objects Based on Ground Penetration Radar

There is a growing demand for mapping and 3D modelling of buried objects such as pipelines, agricultural hetitage, landmines and other buried objects. Usually, large scale and high resolution maps from these objects are needed. Manually map generation and modeling of these objects are cost and time consuming and is dependent on lots of resources. Therefore, automating the subsurface mapping and...

متن کامل

Robust Method for E-Maximization and Hierarchical Clustering of Image Classification

We developed a new semi-supervised EM-like algorithm that is given the set of objects present in eachtraining image, but does not know which regions correspond to which objects. We have tested thealgorithm on a dataset of 860 hand-labeled color images using only color and texture features, and theresults show that our EM variant is able to break the symmetry in the initial solution. We compared...

متن کامل

Urban Vegetation Recognition Based on the Decision Level Fusion of Hyperspectral and Lidar Data

Introduction: Information about vegetation cover and their health has always been interesting to ecologists due to its importance in terms of habitat, energy production and other important characteristics of plants on the earth planet. Nowadays, developments in remote sensing technologies caused more remotely sensed data accessible to researchers. The combination of these data improves the obje...

متن کامل

A version numbering scheme for informational objects used in VM live migration

Various numbering schemes are used to track different versions and revisions of files, software packages, and documents. One major challenge in this regard is the lack of an all-purpose, adaptive, comprehensive and efficient standard. To resolve the challenge, this article presents Quadruple Adaptive Version Numbering Scheme. In the proposed scheme, the version identifier consists of four integ...

متن کامل

Analytical Studies and Identification of Production Process in the Glass Objects from the Underground Hand-Made Architectural Complex of Arzanfood, Hamedan

Study on the production technology in ancient glass artefacts is one of the interesting subject in the field of archaeological sciences. The aim of this study is to identify the chemical composition and production technology in the glass objects discovered form the underground hand-made architectural complex of Arzanfood, near Hamedan, in western Iran. These objects are including some broken pi...

متن کامل

Comparison of Different Targets Used in Augmented Reality Applications in Ubiquitous GIS

Drilling requires accurate information about locations of underground infrastructures or it can cause serious damages. Augmented Reality (AR) as a technology in Ubiquitous GIS (UBIGIS) can be used to visualize underground infrastructures on smartphones. Since smartphone’s sensors do not provide such accuracy, another approaches should be applied. Vision based computer vision systems are well kn...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1977